

package com.mall.order.api;

import com.mall.order.constants.SysConstant;
import com.mall.order.model.DemoAppBaseInfoVo;
import com.ctg.mse.common.model.result.ResultGeneralModel;
import com.mall.order.model.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Description: HTTP的接口API
 * name一定要指定使用 SysConstant.APP_NAME，这个是在注册中心中可以找到的服务名
 * @Author: zhouzhao
 * @CreateTime: 2022/10/19 10:38:29
 */
@FeignClient(SysConstant.APP_NAME)
public interface OrderApi {

    @GetMapping(SysConstant.BASE_URL + "modifyOrderState")
    ResultGeneralModel<OrderInfo> modifyOrderState(@RequestParam final Long orderId, @RequestParam final Integer state);

    @GetMapping(SysConstant.BASE_URL + "getProductsSales")
    ResultGeneralModel<List<Long>> getProductsSales(@RequestParam final String productIds);

}
